2004-08-04 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkfilechooser.[hc]: Add setter and getter for the
+ ::show-hidden property. (#145610, Jeff Franks)
+
* tests/testiconview.c: Add buttons to select and unselect all
nodes, make the popup menu actually work.
2004-08-04 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkfilechooser.[hc]: Add setter and getter for the
+ ::show-hidden property. (#145610, Jeff Franks)
+
* tests/testiconview.c: Add buttons to select and unselect all
nodes, make the popup menu actually work.
2004-08-04 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkfilechooser.[hc]: Add setter and getter for the
+ ::show-hidden property. (#145610, Jeff Franks)
+
* tests/testiconview.c: Add buttons to select and unselect all
nodes, make the popup menu actually work.
2004-08-04 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkfilechooser.[hc]: Add setter and getter for the
+ ::show-hidden property. (#145610, Jeff Franks)
+
* tests/testiconview.c: Add buttons to select and unselect all
nodes, make the popup menu actually work.
+2004-08-04 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtk-sections.txt: Add gtk_file_chooser_[sg]et_show_hidden.
+
2004-08-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk-sections.txt: Add hover-expand setter and getter.
gtk_file_chooser_get_local_only
gtk_file_chooser_set_select_multiple
gtk_file_chooser_get_select_multiple
+gtk_file_chooser_set_show_hidden
+gtk_file_chooser_get_show_hidden
gtk_file_chooser_set_current_name
gtk_file_chooser_get_filename
gtk_file_chooser_set_filename
gtk_file_paths_free (folders);
return result;
}
+
+
+/**
+ * gtk_file_chooser_set_show_hidden:
+ * @chooser: a #GtkFileChooser
+ * @show_hidden: %TRUE if hidden files and folders should be displayed.
+ *
+ * Sets whether hidden files and folders are displayed in the file selector.
+ *
+ * Since: 2.6
+ **/
+void
+gtk_file_chooser_set_select_multiple (GtkFileChooser *chooser,
+ gboolean show_hidden)
+{
+ g_return_if_fail (GTK_IS_FILE_CHOOSER (chooser));
+
+ g_object_set (chooser, "show-hidden", show_hidden, NULL);
+}
+
+/**
+ * gtk_file_chooser_get_show_hidden:
+ * @chooser: a #GtkFileChooser
+ *
+ * Gets whether hidden files and folders are displayed in the file selector.
+ * See gtk_file_chooser_set_show_hidden().
+ *
+ * Return value: %TRUE if hidden files and folders are displayed.
+ *
+ * Since: 2.6
+ **/
+gboolean
+gtk_file_chooser_get_show_hidden (GtkFileChooser *chooser)
+{
+ gboolean show_hidden;
+
+ g_return_val_if_fail (GTK_IS_FILE_CHOOSER (chooser), FALSE);
+
+ g_object_get (chooser, "show-hidden", &show_hidden, NULL);
+
+ return show_hidden;
+}
void gtk_file_chooser_set_select_multiple (GtkFileChooser *chooser,
gboolean select_multiple);
gboolean gtk_file_chooser_get_select_multiple (GtkFileChooser *chooser);
+void gtk_file_chooser_set_show_hidden (GtkFileChooser *chooser,
+ gboolean show_hidden);
+gboolean gtk_file_chooser_get_show_hidden (GtkFileChooser *chooser);
/* Suggested name for the Save-type actions
*/